home *** CD-ROM | disk | FTP | other *** search
/ MacPeople 1998 #2 / MACPEOPLE-1998-NO2.ISO / アップル関連 / ARA PS アップデート / モデム用追加分 / Supra 288⁄V.34 / Supra 288_V.34 next >
Text File  |  1995-02-28  |  4KB  |  256 lines

  1. !                              SUPRA CORPORATION
  2. !
  3. !                         APPLE REMOTE ACCESS 1.0/2.0
  4. !                  COMMUNICATION CONTROL LANGUAGE SCRIPT
  5. !             ENGINEERED BY MARK B. COOPER (edited 2/95 for V.34 support. JHE)
  6. !
  7. @ORIGINATE
  8. @ANSWER
  9. !
  10. @LABEL 1
  11. SETTRIES 0
  12. HSRESET 0 1 0 0 0 0
  13. DTRSET
  14. !Wait for modem to powerup
  15. PAUSE 30
  16.  
  17. @Label 3
  18. SERRESET 57600, 0, 8, 1
  19. ! SETUP DEFAULT DIALING STRING FOR THE MODEM.
  20. matchstr 1 7 "OK¥13¥10"
  21. write "AT &F1B1S0=0M0E0¥¥N0N1%C0S46=136&C1&K3&D2W2S95=12S7=120¥13"
  22. matchread 30
  23. inctries
  24. iftries 2 5
  25. SBREAK
  26. Jump 3
  27.  
  28. @Label 5
  29. HSRESET 0 0 0 0 0 0
  30. SERRESET 2400, 0, 8, 1
  31. Write "AT¥13"
  32. ! SETUP DEFAULT DIALING STRING FOR THE MODEM.
  33. MatchClr
  34. matchstr 1 13 "OK¥13¥10"
  35. write "AT &FS0=0M0E0&C1S7=120&P1¥13"
  36. matchread 30
  37. inctries
  38. iftries 2 98
  39. SBREAK
  40. jump 5
  41.  
  42. @LABEL 7
  43. ! CHECK ERROR CORRECTION LINK REQUEST
  44. ! MNP10 = 2, LAP-M/MNP = 1
  45. ifstr 4 9 "2"
  46. ifstr 4 11 "1"
  47. jump 13
  48.  
  49. @LABEL 9
  50. ! Configure MNP10 operation
  51. ! Used with ARA 2.0 only
  52. write "AT¥¥N3)M1-K1¥13"
  53. Jump 13
  54.  
  55. @Label 11
  56. ! Configure LAP-M/MNP operation
  57. ! Used with ARA 2.0 only
  58. write "AT¥¥N3¥13"
  59.  
  60. @LABEL 13
  61. ! SETUP ACCORDING TO SPEAKER OPTION
  62. ifstr 2 15 "0"
  63. matchclr
  64. matchstr 1 15 "OK¥13¥10"
  65. write "ATM1¥13"
  66. matchread 30
  67. jump 98
  68.  
  69. @LABEL 15
  70. ! TURN ON AUTO ANSWER
  71. iforiginate 17
  72. write "ATS0=1¥13"
  73. Jump 40
  74.  
  75. @LABEL 17
  76. ! 1 = blind, 2 =manual
  77. ifstr 6 21 "1"
  78. ifstr 6 19 "2"
  79. Jump 23
  80.  
  81. @LABEL 19
  82. note "Initiating Manual Connect..." 3
  83. write "ATD¥13"
  84. jump 40
  85.  
  86. @LABEL 21
  87. note "Dialing without dialtone detection." 3
  88. matchclr
  89. matchstr 1 23 "OK¥13¥10"
  90. write "ATX1¥13"
  91. matchread 30
  92. jump 98
  93.  
  94. @LABEL 23
  95. USERHOOK 1
  96. note "Dialing ^1." 3
  97. write "ATD^3^1¥13"
  98.  
  99. @LABEL 40
  100. !Wait for modem connection speed result code
  101. matchstr 1 44 "CONNECT¥13¥10"
  102. matchstr 2 44 " 2400¥13¥10"
  103. matchstr 3 46 " 9600¥13¥10"
  104. matchstr 4 48 " 14400¥13¥10"
  105. matchstr 5 50 " 16800¥13¥10"
  106. matchstr 6 52 " 19200¥13¥10"
  107. matchstr 7 54 " 21600¥13¥10"
  108. matchstr 8 56 " 24000¥13¥10"
  109. matchstr 9 58 " 26400¥13¥10"
  110. matchstr 10 60 " 28800¥13¥10"
  111. matchstr 12 42 "RING¥13¥10"
  112. matchstr 13 90 "NO CARRIER¥13¥10"
  113. matchstr 14 92 "NO DIALTONE¥13¥10"
  114. matchstr 15 94 "BUSY¥13¥10"
  115. matchstr 16 96 "NO ANSWER¥13¥10"
  116. matchread 1200
  117. ifANSWER 40
  118. jump 96
  119.  
  120. @LABEL 42
  121. note "Answering Phone..." 2
  122. USERHOOK 1
  123. jump 40
  124.  
  125. @LABEL 44
  126. note "Communicating at 2400 bps." 2
  127. CommunicatingAt 2400
  128. jump 70
  129.  
  130. @LABEL 46
  131. note "Communicating at 9600 bps." 2
  132. CommunicatingAt 9600
  133. jump 70
  134.  
  135. @LABEL 48
  136. note "Communicating at 14400 bps." 2
  137. CommunicatingAt 14400
  138. jump 70
  139.  
  140. @LABEL 50
  141. note "Communicating at 16800 bps." 2
  142. CommunicatingAt 16800
  143. jump 70
  144.  
  145. @LABEL 52
  146. note "Communicating at 19200 bps." 2
  147. CommunicatingAt 19200
  148. jump 70
  149.  
  150. @LABEL 54
  151. note "Communicating at 21600 bps." 2
  152. CommunicatingAt 21600
  153. jump 70
  154.  
  155. @LABEL 56
  156. note "Communicating at 24000 bps." 2
  157. CommunicatingAt 24000
  158. jump 70
  159.  
  160. @LABEL 58
  161. note "Communicating at 26400 bps." 2
  162. CommunicatingAt 26400
  163. jump 70
  164.  
  165. @LABEL 60
  166. note "Communicating at 28800 bps." 2
  167. CommunicatingAt 28800
  168. Jump 70
  169.  
  170. @LABEL 70
  171. matchclr
  172. matchstr 1 78 "PROTOCOL: NONE¥13¥10"
  173. matchstr 2 72 "PROTOCOL: LAP-M¥13¥10"
  174. matchstr 3 74 "PROTOCOL: ALT¥13¥10"
  175. matchstr 4 76 "PROTOCOL: ALT - CELLULAR¥13¥10"
  176. matchread 50
  177. Jump 78
  178.  
  179. @LABEL 72
  180. note "LAP-M reliable link established." 3
  181. userhook 2
  182. jump 78
  183.  
  184. @LABEL 74
  185. note "MNP reliable link established." 3
  186. userhook 2
  187. jump 78
  188.  
  189. @LABEL 76
  190. note "MNP10 reliable link established." 3
  191. userhook 4
  192. jump 78
  193.  
  194. @LABEL 78
  195. exit 0
  196.  
  197.  
  198. @HANGUP
  199. @LABEL 80
  200. settries 0
  201. HSReset 0 0 0 0 0 0 
  202. DTRClear
  203.  
  204. @LABEL 82
  205. Flush
  206. SBREAK
  207. pause 5
  208. matchclr
  209. matchstr 1 84 "NO CARRIER¥13¥10"
  210. matchstr 2 84 "OK¥13¥10"
  211. matchstr 3 84 "ERROR¥13¥10"
  212. matchstr 4 84 "0¥13¥10"
  213. write "ATH¥13"
  214. matchread 30
  215. inctries
  216. iftries 3 98
  217. write "+++"
  218. jump 82
  219.  
  220. @LABEL 84
  221. matchclr
  222. matchstr 1 86 "OK¥13¥10"
  223. write "AT&F¥13"
  224. matchread 30
  225. jump 98
  226.  
  227. @LABEL 86
  228. userhook 0
  229. exit 0
  230.  
  231. ! General script errors
  232. @LABEL 90
  233. ! NO CARRIER
  234. exit -6021
  235.  
  236. @LABEL 92
  237. ! NO DIALTONE
  238. exit -6020
  239.  
  240. @LABEL 94
  241. ! BUSY SIGNAL DETECTED
  242. exit -6022
  243.  
  244. @LABEL 96
  245. ! NO ANSWER
  246. exit -6023
  247.  
  248. @LABEL 98
  249. ! MODEM NOT RESPONDING
  250. exit -6019
  251.  
  252. @LABEL 100
  253. ! VARSTRING ERROR
  254. exit -6027
  255.